﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="intergral_gift_address.aspx.cs" Inherits="intergral_gift_address" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>礼品邮寄地址</title>
    <style type="text/css">
        html {}
        html, body{overflow-x: hidden; overflow-y: auto;}
        body,td,th {font-size: 12px;color:#333;}
        body {margin-left: 0px; margin-top: 0px; /* background-size:100%; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=../images/BodyBg.jpg,sizingMethod=scale); */font-family:Microsoft YaHei;} 
        a:link {color:#333;text-decoration: none;}
        a:visited {text-decoration: none;color:#333;}
        a:hover {text-decoration: none;color: #F00;}
        a:active {text-decoration: none;color:#333;}
        * { margin:0; padding:0;}
        ul { list-style-type:none; }
        img { border:0; }
        input,textarea:focus {outline: none;}
        /*Main Css End*/
        .gift_address_box { margin:0 auto; width:400px; height:470px; background:#FFF; border:1px solid #DDD;}
        .gift_address_t { height:40px; background:#CA210A; color:#FFF; font-size:16px; padding:0 20px; line-height:40px;}
        .gift_address_t_i { padding:20px 0; text-align:center; line-height:20px; font-size:14px;}
        .gift_address_con { padding:0 25px;}
        .gift_address_con li { width:100%; min-height:65px;}
        .gift_a_n { float:left; width:70px; font-size:14px; line-height:30px;}
        .gift_input { float:left; width:248px; height:28px; background:#FFF; border:1px solid #DDD; line-height:28px; font-size:13px; padding:0 5px;}
        .gift_infor { float:left; width:260px; line-height:30px; color:#999; padding-left:70px;}
        .gift_btn { width:76px; height:28px; border:none; background:url(../images/2015102800.jpg) no-repeat; margin:35px auto; display:block;}
    </style>  
    <script src="../js/jquery.min.js" type="text/javascript"></script>
    <script src="../js/jquery-1.9.1.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript"> 
        function Exchange() { 
            $.post("../Ajax/UpdateAddress.aspx", { txtRealName: jQuery('#txtRealName1').val(), txtAddress: jQuery('#txtAddress1').val(), txtPost: jQuery('#txtPost1').val(), txtmobile: jQuery('#txtmobile1').val() }, function (data) {
                if (data == "sucess") {
                    alert("更新成功!");
                    top.window.location.href = '/integral/per_integral_detail.aspx';
                } else {
                    alert(data);
                }
            }, "text");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="gift_address_box">
            <h2 class="gift_address_t">礼品邮寄地址</h2>
            <h3 class="gift_address_t_i">请正确填写礼品邮寄地址，以免收不到礼品</h3>
            <ul class="gift_address_con">
                <li>
                    <span class="gift_a_n">真实姓名：</span> 
                <input type="text" class="gift_input" id="txtRealName1" value="<%=txtRealName %>"/>  
                    <p class="gift_infor">请输入收货人姓名</p>
                </li>
                <li>
                    <span class="gift_a_n">收货地址：</span>
                <input type="text" class="gift_input" id="txtAddress1"  value="<%=txtAddress %>"/>  
                    <p class="gift_infor">请输入收件地址</p>
                </li>
                <li>
                    <span class="gift_a_n">邮政编码：</span>
                <input type="text" class="gift_input" id="txtPost1"  value="<%=txtPost %>"/>  
                    <p class="gift_infor">请填写6位数字邮政编码</p>
                </li>
                <li>
                    <span class="gift_a_n">手机号码：</span>
                <input type="text" class="gift_input" id="txtmobile1"  value="<%=txtmobile %>" maxlength="11"/>  
                    <p class="gift_infor">请填写11位手机号码 示例：135 1240 4527</p>
                </li>
                <li>
                
            <input type="button" class="gift_btn" onclick="javascript:Exchange();"/>  
                </li>
            </ul>
        </div>
    </div>
    </form>
</body>
</html>
